@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');


input:focus {
    outline: none;
    box-shadow: none;
}

html {
  overflow-y: scroll;
}

body {
        width: 100%;
        font-family: 'Lato', sans-serif;
        font-weight: normal;
        font-size: 17px;
        text-align: center;
        margin: 0;
        padding: 0;
        background: #fdfdfd;
        color: #222;
}

h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
}

/* ===== INSTELLINGEN WRAPPER ===== */

.instellingen-wrapper {
        display: none; /* standaard verborgen */
        justify-content: space-between;
        max-width: 800px;
        margin: 40px auto;
        font-family: 'Lato', sans-serif;
        padding: 0 1%; /* Voeg padding toe aan de wrapper */
}

.instelling-links,
.instelling-rechts {
        width: 50%;
        display: flex;
        justify-content: center; /* centreer de inhoud binnen elk blok */
        box-sizing: border-box;
}

.instelling-links > div,
.instelling-rechts > div {
        background: #ffe6ec;
        border: 1px solid #ccc;
        padding: 1% 2%;
        margin: 0 2%;
        border-radius: 6px;
        font-size: 14px;
        font-weight: normal;
        flex-grow: 1;
        flex-basis: 40%;
        max-width: 340px;
        box-sizing: border-box;
}

/* ===== TITELS BOVEN KEUZES ===== */

.instelling-links p,
.instelling-rechts p {
        margin-bottom: 4px;
        ont-weight: bold;
}

/* ===== RADIOLABELS & KNOPPEN ===== */

.radioreeks {
        display: flex;
        justify-content: space-evenly; /* verdeel ze gelijkmatig */
        flex-wrap: nowrap;
        width: 100%;
}

.radiolabel {
	font-weight: normal;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        cursor: pointer;
        white-space: nowrap;
        padding: 0 0.5%;
        gap: 10px; /* dit vergroot de afstand tussen het bolletje en de tekst */
}

.radiolabel input[type="radio"] {
        display: none;
}

.custom-radio {
        width: 16px;
        height: 16px;
        border: 2px solid #bbb;
        border-radius: 50%;
        background-color: transparent;
        transition: all 0.2s ease;
}

.radiolabel input[type="radio"]:checked + .custom-radio {
        background-color: #ef3258;
        border-color: #ef3258;
}

.radiolabel input[type="radio"]:not(:checked) + .custom-radio {
        background-color: white; /* Maak de niet-geselecteerde knoppen wit van binnen */
        border-color: #bbb; /* Houd de randkleur hetzelfde */
}

.radio-titel {
        margin-top: 8px;
        font-size: 16px;
        text-align: center;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

svg {
        /* Zorg dat de SVG zich volledig uitstrekt */
        width: 100%;
        max-width: 1000px;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
}

#svg-wrapper {
        background: #617687;
        width: 100%;
        height: auto;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

#input-wrapper {
        margin: 0rem 0;
}

#input-wrapper input {
        width: 6.5rem; /* breedte van de velden */
        padding: 0.5rem;
        margin: 0.7em 0.7em;
        font-size: 1.2rem;
        text-align: center;
        font-family: 'Lato', sans-serif;
        font-size: 1em;
        padding: 0.4rem;
}

input.actief {
        background-color: #ffe6ec;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


.tooltip-trigger {
        display: inline-block;
        width: 13px; /* iets kleiner dan voorheen */
        height: 13px; /* idem */
        background-color: #ddd;
        color: black;
        border: 0.1em solid #888;
        border-radius: 50%;
        text-align: center;
        line-height: 13px; /* aangepast aan hoogte */
        font-weight: bold;
        cursor: pointer;
        margin-left: 10px;
        font-size: 9px; /* iets kleiner font */
        position: relative;
        top: -2px; /* 2 pixels omhoog */
        margin-left: 3px;
}

/* Tooltip verschijnt bij hover */
.tooltip-trigger:hover .tooltip,
.tooltip-visible {
        display: block;
}

.tooltip.tooltip-visible {
    display: block;
}

.tooltip {
  display: none;
  position: absolute;
  background-color: #eee;
  border: 1px solid #aaa;
  padding: 10px;
  border-radius: 6px;
  width: 320px;
  color: #333;
  font-size: 14px;
  line-height: 1.4em;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  font-weight: normal;
  white-space: normal;
  word-wrap: break-word;
}

.tooltip-trigger:hover .tooltip {
  display: block;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

::placeholder {
        color: #ccc;
}

#akkoord {
        font-size: 26px;
        font-weight: normal;
        margin-right: 0.5rem;
}

#akkoord span {
        display: inline-block;
        width: 5.5em; /* vaste breedte zodat niets verspringt */
        text-align: center;
        margin-right: 1rem;
        font-weight: normal;
}

#akkoord .actief {
        background-color: #ef3258;
        color: white;
        padding: 0.2em 0.4em;
        border-radius: 0.3em;
}

input[type="text"] {
        font-size: 1.2rem;
        padding: 0.3rem 0.6rem;
        width: 4rem;
        text-align: center;
        border-radius: 0.3rem;
        border: 1px solid #ccc;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


@media (max-width: 700px) {
  .instellingen-wrapper {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
    margin-top: 0px;    
  }

  .instelling-links,
  .instelling-rechts {
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 0px;
  }

  .instelling-links > div,
  .instelling-rechts > div {
    max-width: 90%;
    width: 90%;
  }
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


#listen-button {
    background-color: #ffe6ec;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    padding: 0.4rem 0rem  0.4rem 0rem;
    cursor: pointer;
    color: #222;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


.control-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ef3258;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.control-button:hover {
    ackground: #d62847;a
    ransform: translateY(-1px);
}

.control-button:active {
    transform: translateY(0);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 13px solid currentColor;
    border-top: 8px solid transparent; /* hoogste punt links */
    border-bottom: 8px solid transparent; /* laagste punt links */
    margin-left: 2px;
}

.stop-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background: currentColor;
    display: block;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.audio-controls .tooltip-trigger {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: #ddd;
	color: black;
	border: 0.1em solid #888;
	border-radius: 50%;
	text-align: center;
	line-height: 16px;
	font-weight: bold;
	cursor: pointer;
	font-size: 10px;
	top: -4px;
}

.audio-controls .tooltip {
	display: none;
	position: absolute;
	background-color: #eee;
	border: 0.1em solid #aaa;
	padding: 10px;
	border-radius: 6px;
	width: 350px;
	color: #333;
	font-size: 14px;
	line-height: 1.4em;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	top: 125%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	margin-top: 10px;
  bottom: auto;
  top: 150%;
  left: -150px; /* afhankelijk van gewenste positionering */
  right: auto;
	  top: -100%;
	  left: 50%;
  transform: translate(-50%, -40px);
}

.tooltip-visible {
	display: block !important;
}

.tooltip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-trigger {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ddd;
  color: black;
  border: 1px solid #888;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 10px;
  position: relative;
}

.tooltip {
  display: none;
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #eee;
  border: 1px solid #aaa;
  padding: 10px;
  border-radius: 6px;
  width: 320px;
  color: #333;
  font-size: 14px;
  line-height: 1.4em;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.tooltip-visible {
  display: block !important;
}

.audio-controls {
  display: none;
  align-items: flex-start; /* Tooltip iets omhoog */
  justify-content: center;
  gap: 6px;
  margin: 10px auto;
  max-width: 220px;
  position: relative;
}

.audio-controls .tooltip-trigger {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ddd;
  color: black;
  border: 1px solid #888;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 10px;
  top: -2px; /* schuif als superscript */
}

.audio-controls .tooltip {
  display: none;
  position: absolute;
  top: -100%; /* boven het vraagteken */
  left: 50%;
  transform: translate(-60%, -20px); /* schuif omhoog */
  background-color: #eee;
  border: 1px solid #aaa;
  padding: 10px;
  border-radius: 6px;
  width: 320px;
  color: #333;
  font-size: 14px;
  line-height: 1.4em;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  left: auto;
  right: -20px;       /* schuif richting de stopknop */
transform: translateY(-40px); /* alleen verticaal verplaatsen */
}

.audio-controls .tooltip-trigger:hover .tooltip {
  display: block;
}